import 'package:flutter/material.dart';
class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("首页"), // 标题
        leading: Icon(Icons.menu), // 左侧图标
        actions: [Icon(Icons.settings)],  // 右侧图标数组
        elevation: 0.0,// 去掉阴影
        centerTitle: true, // 标题居中

      ),
      body: HelloFlutter(),
    );
  }
}



class HelloFlutter extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Text(
          "hello Flutter",
          textDirection: TextDirection.ltr,
        ),
      ),
    );
  }
}